import Base from '../../static/js/base'
class My extends Base{
	constructor() {
		super();
	}
	// 登录
	login(data,callBack) {
		var that = this;
		var params = {
		  url: 'login/login',
		  method:'POST',
		  data:data,
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
	// 我的信息
	my(callBack) {
		var that = this;
		var params = {
		  url: 'login/my',
		  method:'POST',
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
	// 商品列表
	product_list(page,callBack) {
		var that = this;
		var params = {
		  url: 'index/product_list',
		  data:{
			  type:1,
			  page:page,
		  },
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
}

export default My	